import request from '@/utils/request';

export function upload(data) {
  return request({
    url: '/upload/sql',
    method: 'post',
    data: data, 
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  });
}
export function setupload(data,DBid) {
  return request({
    url: '/upload/setsql',
    method: 'post',
    params: { DBid },
    data: data, 
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  });
}